get /vms/{vmId}/instancetypes
Get Available Instance Types For VM (getInstanceTypesForVm)
Gets the Available Instance Types For the VM
Path parameters
vmId (required)
Path Parameter — Virtual machine ID
Consumes
This API call consumes the following media types via the Content-Type request header:
- application/json
Return type
array[InstanceType]
VM instance type
cpus (optional) |
Integer Instance Type Number of CPUs format: int32 |
maxDataDiskCount (optional) |
Integer Instance Maximum Number of Data Disks format: int32 |
memory (optional) |
Double VM Instance Memory Size format: double |
name (optional) |
String VM Instance Name |
resourceDiskSize (optional) |
Double VM instance Resource Disk Size format: double |
Example data
Content-Type: application/json
[
{
"cpus": 1,
"maxDataDiskCount": 1,
"memory": 1,
"name": "t2.micro",
"resourceDiskSize": 0
}
]
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
- application/json
Responses
200
OK
Default
Error ErrorInfo
errorCode (optional) |
String |
url(optional) |
String |
message (optional) |
String |